package com.specdot.kraster.math;

public class Point3 extends Vector4 {
	public Point3(float x, float y, float z) {
		super(x, y, z, 1);
	}
	
	public float length() {
		return (float) Math.sqrt(x * x + y * y + z * z);
	}
	
	public Point3 normalized() {
		float revLength = 1 / length();
		return new Point3(x * length(), y * length(), z * length());
	}
}
